package cn.example.project1.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 后台页面ctrl
 * Created by WuYB on 2017/2/27.
 */
@Controller
@RequestMapping("admin")
public class AdminViewCtrl {
    /**
     * 后台基础静态导入
     *
     * @return view
     */
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String app() {
        return "admin/app";
    }

    /**
     * 后台带头部导航
     *
     * @return view
     */
    @RequestMapping(value = "/dashbord", method = RequestMethod.GET)
    public String dashbord() {
        return "admin/dashbord";
    }

    /**
     * 后台登录
     *
     * @return view
     */
    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
        return "admin/login";
    }

    /**
     * demo1管理的容器
     *
     * @return view
     */
    @RequestMapping(value = "/demo1", method = RequestMethod.GET)
    public String demo1Container() {
        return "admin/demo1/container";
    }

    /**
     * demo1列表
     *
     * @return view
     */
    @RequestMapping(value = "/demo1/list", method = RequestMethod.GET)
    public String demo1List() {
        return "admin/demo1/list";
    }

    /**
     * demo1发布
     *
     * @return view
     */
    @RequestMapping(value = "/demo1/publish", method = RequestMethod.GET)
    public String demo1Publish() {
        return "admin/demo1/publish";
    }

    /**
     * demo1管理的容器
     *
     * @return view
     */
    @RequestMapping(value = "/demo2", method = RequestMethod.GET)
    public String demo2Container() {
        return "admin/demo2/container";
    }

    /**
     * demo1列表
     *
     * @return view
     */
    @RequestMapping(value = "/demo2/delivery", method = RequestMethod.GET)
    public String demo2List() {
        return "admin/demo2/delivery";
    }


}
